package org.yly.game.rpggame.domain.model.task;
/**
 * 任务类型
 * @author makefu
 *
 */
public enum TaskType {

	GeneralTask(0), // 普通任务
	DayTask(1), // 日常任务
	RuleTask(2), // 角色任务
	SectTask(3); // 教派任务
	
	private int value;
	
	private TaskType(int value) {
		this.value = value;
	}
	
	public int getValue(){
		return this.value;
	}
	
	public boolean isGeneralTask() {
		return this == TaskType.GeneralTask;
	}
	public boolean isDayTask() {
		return this == TaskType.DayTask;
	}
	public boolean isRuleTask() {
		return this == TaskType.RuleTask;
	}
	public boolean isSectTask() {
		return this == TaskType.SectTask;
	}
}
